{
	"info": {
		"name": "JLG ClearSky APIs",
		"description": "The Postman collection from JLG for the ClearSky APIs",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "PROD",
			"item": [
				{
					"name": "Request Access Token",
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"connection": true,
							"accept-encoding": true,
							"accept": true,
							"user-agent": true
						}
					},
					"request": {
						"auth": {
							"type": "basic",
							"basic": [
								{
									"key": "password",
									"value": "{{clientSecret}}",
									"type": "string"
								},
								{
									"key": "username",
									"value": "{{clientId}}",
									"type": "string"
								},
								{
									"key": "saveHelperData",
									"value": true,
									"type": "boolean"
								},
								{
									"key": "showPassword",
									"value": false,
									"type": "boolean"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "scope",
									"value": "clearsky:get",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://apim.jlg.com/identity/token",
							"protocol": "https",
							"host": [
								"apim",
								"jlg",
								"com"
							],
							"path": [
								"identity",
								"token"
							]
						}
					},
					"response": []
				},
				{
					"name": "JLG Timeseries API",
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"connection": true
						}
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{bearerToken}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://apim.jlg.com/clearsky/equipmentData/v4/Pro?ownerCompany=123456&startDate=20220613080000&endDate=20230606121500&engineData=true&aftertreatmentData=true&chargerData=true&machineData=true&pageNo=1",
							"protocol": "https",
							"host": [
								"apim",
								"jlg",
								"com"
							],
							"path": [
								"clearsky",
								"equipmentData",
								"v4",
								"Pro"
							],
							"query": [
								{
									"key": "ownerCompany",
									"value": "123456",
									"description": "Unique JLG customer number for the customer's fleet."
								},
								{
									"key": "startDate",
									"value": "20220613080000",
									"description": "Starting date filter to indicate a point in time when the API should start retrieving data from. Date format: (yyyyMMddHHmmss)"
								},
								{
									"key": "endDate",
									"value": "20230606121500",
									"description": "Ending date filter to indicate a point in time when the API should stop retrieving data from. Date format: (yyyyMMddHHmmss)"
								},
								{
									"key": "engineData",
									"value": "true",
									"description": "Parameter used to trigger an API read that includes the engine data element block. If this parameter is not passed, it is assumed as false and the engine data will NOT be returned in the message response."
								},
								{
									"key": "aftertreatmentData",
									"value": "true",
									"description": "Parameter used to trigger an API read that includes the aftertreatment data element block. If this parameter is not passed, it is assumed as false and the aftertreatment data will NOT be returned in the message response."
								},
								{
									"key": "chargerData",
									"value": "true",
									"description": "Parameter used to trigger an API read that includes the charger data element block. If this parameter is not passed, it is assumed as false and the charger data will NOT be returned in the message response."
								},
								{
									"key": "machineData",
									"value": "true",
									"description": "Parameter used to trigger an API read that includes the machine data element block. If this parameter is not passed, it is assumed as false and the machine data will NOT be returned in the message response."
								},
								{
									"key": "pageNo",
									"value": "1",
									"description": "Page Number for the result set of data returned via the API. Defaults to 1 if it's not included in the request."
								},
								{
									"key": "equipmentID",
									"value": "9271860623",
									"description": "Identification number of a piece of equipment. Use if you're requesting data for a single piece of equipment.",
									"disabled": true
								},
								{
									"key": "useEIDs",
									"value": "true",
									"description": "Parameter to indicate if the equipmentID should represent a customer's Equipment ID for a machine or the JLG serial number. Defaults to true if not included in the request.",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "ISO Current State API",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{bearerToken}}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://apim.jlg.com/clearsky/iso/current",
							"protocol": "https",
							"host": [
								"apim",
								"jlg",
								"com"
							],
							"path": [
								"clearsky",
								"iso",
								"current"
							],
							"query": [
								{
									"key": "pageNum",
									"value": "1",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "1000",
									"disabled": true
								},
								{
									"key": "electricData",
									"value": "true",
									"disabled": true
								}
							]
						}
					},
					"response": []
				}
			],
			"auth": {
				"type": "noauth"
			},
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		}
	]
}